<?php

namespace App\Listeners;

use D1M\Payment\Events\PaymentPaid;
use Throwable;

/**
 * 通知 ES 系统订单支付成功
 */
class NotifyOrderPaid extends NotifyOrderPaymentStatusChanged
{

    /**
     * @param PaymentPaid $event
     * @throws Throwable
     */
    public function handle(PaymentPaid $event)
    {
        $this->doHandle($event->id, 'SUCCESS', '支付成功');
    }

}